package demo02;

import jdk.nashorn.internal.objects.annotations.Function;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/10/26 16:01
 */
@SuppressWarnings("all")
public class Test01 {
    public static void main(String[] args) {
        int a=10;
        String b="hello";
        Food food1 = new Food();
        food1.eat();
    }
}

class Food{
    @Override
    public boolean equals(Object obj){
        return true;
    }
    @Deprecated
    public void eat(){
        System.out.println("方法过时");
    }

}
@FunctionalInterface
interface Play{
    public void run();
//    public void games();
}